//
//  FoodTherapyHomeViewController.m
//  MedicalTip
//
//  Created by 徐潇 on 15/4/13.
//  Copyright (c) 2015年 徐潇. All rights reserved.
//

#import "FoodTherapyHomeViewController.h"

@interface FoodTherapyHomeViewController ()

@end

@implementation FoodTherapyHomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.foodHomeView = [[FoodTherapyHomeView alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
    self.foodHomeView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:self.foodHomeView];
    
    DOPDropDownMenu *menu = [[DOPDropDownMenu alloc]initWithOrigin:CGPointMake(0, 60) andHeight:44];
    menu.delegate = self;
    menu.dataSource = self;
    [self.foodHomeView addSubview:menu];
}
- (NSInteger)numberOfColumnsInMenu:(DOPDropDownMenu *)menu
{
    return 2;
}
- (NSInteger)menu:(DOPDropDownMenu *)menu numberOfRowsInColumn:(NSInteger)column
{
    return 10;
}
- (NSString *)menu:(DOPDropDownMenu *)menu titleForItemsInRowAtIndexPath:(DOPIndexPath *)indexPath
{
    if (indexPath.column == 0) {
        return @"oooooo";
    } else {
        return @"pppppp";
    }
    return @"kkkkk";
}
- (NSString *)menu:(DOPDropDownMenu *)menu titleForRowAtIndexPath:(DOPIndexPath *)indexPath
{
    if (indexPath.column == 0) {
        return @"食物疗效";
    } else {
        return @"食物功能";
    }
    return nil;
}
- (NSInteger)menu:(DOPDropDownMenu *)menu numberOfItemsInRow:(NSInteger)row column:(NSInteger)column
{
    return 0;
}
- (void)menu:(DOPDropDownMenu *)menu didSelectRowAtIndexPath:(DOPIndexPath *)indexPath
{
    
    
    
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
